package heima3_2.cn.osc.ui.message_fragment;

import android.support.v4.app.FragmentActivity;

import heima3_2.cn.osc.base.MyBaseAdapter;
import heima3_2.cn.osc.base.OurTabBaseFragment;
import heima3_2.cn.osc.presenter.CommentPresenter;
import heima3_2.cn.osc.ui.adapter.CommentAdapter;

/**
 * Created by yaozhanlie on 2017/1/18.
 */
public class CommentFragment extends OurTabBaseFragment {

    private CommentPresenter mCommentPresenter;

    @Override
    protected MyBaseAdapter getAdapter(FragmentActivity activity, Object o) {
        return new CommentAdapter(activity,null);
    }

    @Override
    public void initPresenter() {
        mCommentPresenter = new CommentPresenter(this);
        mCommentPresenter.getData(0);
    }

    @Override
    public void getMoreData() {
        mCommentPresenter.getData(index++);
    }
}
